﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace DrugStore.Models
{
    public class ExaminationModel
    {
        public String PatientId { get; set; }
        public String PatientName { get; set; }
        public String PatientBirth { get; set; }        
        public int PatientSex { get; set; }
        public String Sex { get; set; }
        public double PatientWeight { get; set; }
        public double PatientHeight { get; set; }
        public String ProcuratorName { get; set; }
        public String ProcuratorRelationShip{ get; set; }
        public String ProcuratorPhone { get; set; }
        public String PatientAddress { get; set; }
        public String ProcuratorEmail { get; set; }
        public String PatientEmail { get; set; }
        public String PatientPhone { get; set; }
        public int status { get; set; }
        

        public List<Symton> Symtons { get; set; }
        public ExaminationModel(Patient p) 
        {
            PatientId = p.PatientId.ToString();
            PatientName = p.PacutatorName;
            PatientBirth = p.PatientBirth.ToShortDateString();            
            PatientWeight = p.PatientWeight;
            PatientHeight = p.PatientHeight;
            ProcuratorName = p.PacutatorName;
            ProcuratorRelationShip = p.PacuratorRelationShip;
            ProcuratorPhone = p.PacuratorPhoneNumber;
            PatientAddress = p.Address;
            ProcuratorEmail = p.PacuratorMail;
            PatientEmail = p.PatientEmail;
            status = p.Status;
            PatientPhone = p.PatientPhoneNumber;          
        }
        public ExaminationModel()
        {
            Sex = "Nam";
            
            Symtons = new List<Symton>();
            Symton s1 = new Symton();
            s1.SymtonName = "The trang toan than";
            Symtons.Add(s1);    
            Symton s2 = new Symton();
            s2.SymtonName = "Đã biết";
            Symtons.Add(s2);
            Symton s3 = new Symton();
            s3.SymtonName = "Len can";
            Symtons.Add(s3);
            Symton s4 = new Symton();
            s4.SymtonName = "Tinh thần";
            Symtons.Add(s4);
            Symton s5 = new Symton();
            s5.SymtonName = "Thói quen";
            Symtons.Add(s5);      
     
        }    
    }
}
